package com.platform.controller.web;

import com.platform.common.annotation.Log;
import com.platform.common.core.page.TableDataInfo;
import com.platform.common.enums.BusinessType;
import com.platform.system.domain.vo.device.SpeakerInfoVo;
import com.platform.system.domain.vo.device.SpeakerTypeVo;
import com.platform.system.service.ISysSpeakerTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Huangkai
 */
@Slf4j
@RestController
@RequestMapping("/speakerType/web")
public class SpeakerTypeWebController {

    @Resource
    ISysSpeakerTypeService sysSpeakerTypeService;

    /**
     * 查询发音人类型
     */
    @Log(title = "查询发音人类型", businessType = BusinessType.OTHER)
    @PostMapping("/selectSpeakerTypeList")
    public TableDataInfo selectSpeakerTypeList(@RequestBody @Validated SpeakerTypeVo speakerInfoVo) {
        return sysSpeakerTypeService.selectSpeakerTypeList(speakerInfoVo);
    }
}
